﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;

namespace Utils
{
    /// <summary>
    /// 加载Resources文件夹里的文件
    /// </summary>
    public class IoUtil
    {
        public static AudioClip GetAudioClip(string name)
        {
            return Resources.Load<AudioClip>($"Audio/{name}");
        }
        public static Texture2D GetTexture2D(string name)
        {
            return Resources.Load<Texture2D>($"Texture2D/{name}");
        }
    }
}
